package thread;

import org.jcp.xml.dsig.internal.SignerOutputStream;

public class ThreadDemo2 {
    public static void main(String[] args) {
        myRunnable1 run1=new myRunnable1();
        myRunnable2 run2=new myRunnable2();
        Thread th=new Thread(run1);
        Thread th2=new Thread(run2);
        th.start();
        th2.start();
    }
}
class myRunnable1 implements Runnable{
    @Override
    public void run() {
        for (int i=0;i<1000;i++){
            System.out.println("你试试");
        }
    }
}
class myRunnable2 implements Runnable{
    public  void run(){
        for (int i=0;i<1000;i++){
            System.out.println("试试就试试");
        }
    }
}
